package com.igeek.javase.ch04.employee;

/*
 *@author wangpeng
 *2023/7/13 10:44
 *@description TODO
 */
public class Manager extends Employee {
        private String department;  //所管部门

        public Manager(String name, String address, double basicSalary, String department) {
            super(name, address, basicSalary);
            this.department = department;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        @Override
        public void show() {
            super.show();
            System.out.println("Department: " + department);
        }

}
